<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="/WEB-INF/jspf/taglibs.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/styles/jquery-ui.css" >
<link rel="stylesheet" href="/styles/blueimp-gallery.css">
<style type="text/css">
    #content { margin-bottom: 0px;}
</style>
</head>
<body>
<div class="p-h-md p-v bg-white box-shadow pos-rlt">
  <h3 class="no-margin have-btn-title">新建落地页</h3>
  <a href="/landingpage/list" type="button" class="btn btn-sm btn-primary ng-click-active pull-right add-advert-btn-style"
    <i class="glyphicon glyphicon-plus"></i>
    返回落地页列表
  </a>
</div>
<div class="p-md">
<!-- <iframe id="contentframe" src="http://dev.com:3000/zen/front/82/pages/225/edit" height="1000px" frameborder="0" width="100%" allowtransparency scrolling="no"> -->
<!-- <iframe id="contentframe" src="http://dev.com:3000/zen/front/82/forms/48/edit" height="1000px" frameborder="0" width="100%" allowtransparency scrolling="no"> -->

<iframe id="iframeB"  name="iframeB" src="http://dev.com:3000/zen/front/82/pages/225/edit" width="100%" height="auto" scrolling="yes" frameborder="0"></iframe>    
</div>

<script src="/js/gallery/blueimp-gallery.js"></script>
<script src="/js/gallery/jquery.blueimp-gallery.js"></script>
<script src="/js/gallery/jquery.image-gallery.js"></script>

</iframe>
<script type="text/javascript">
    // $(function () {
    //     try {
    //         var frame = document.getElementById("contentframe");
    //         frame.onreadystatechange = function () {
    //             if (this.readyState == "complete")

    //                 var ifm = document.getElementById("contentframe");
    //             var subWeb = document.frames ? document.frames["contentframe"].document : ifm.contentDocument;
    //             if (ifm != null && subWeb != null) {
    //                 ifm.height = subWeb.body.scrollHeight;
    //                 console.log(ifm.height);
    //             }
    //         }

    //     }
    //     catch (err) {            
    //         $("#contentframe").attr("height", 1000);
    //     }
    // })
</script>
</body>
</html>